<template>
  <div id="tmpl">
    <mt-swipe :auto="2000">
      <mt-swipe-item v-for="(item,index) in imgs" :key="index">
        <a :href="item.url">
          <img :src="item.img" alt="">
        </a>
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>
<script>
export default {
  //接收父组件传入过来的数据
  props: ['imgs']
}
</script>
<style lang="css" scoped>
.mint-swipe {
  height: 300px;
}

.mint-swipe-item img {
  width: 100%;
}

.mint-swipe-item {
  width: 100%;
  height: 100%;
}
</style>